﻿using Tauren.Form.Entity.Config;
using Tauren.Form.Service.Base;

namespace Tauren.Form.Service.Field_FormBLL
{
    /// <summary>
    /// 表单设置类
    /// </summary>
    public interface IField_FormService:IBaseService
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        IResponseMessage Pages(Entity.Global.QueryModel queryModel);
        /// <summary>
        /// 获取单个数据信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IResponseMessage FirstOrDefault(long id);

        /// <summary>
        /// 新增数据
        /// </summary>
        /// <returns></returns>
        IResponseMessage Add(Entity.Input.Field_Form_InPut data);

        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        IResponseMessage Edit(Entity.Input.Field_Form_InPut data);

        /// <summary>
        /// 主键数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Delete(long AutoID);

        /// <summary>
        /// 卸载表单数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Uninstall(long AutoID);

    }
}
